import api from './index'
import { axios } from '@/utils/request'
import Qs from 'qs'

export function sexAnalysis(parameter) {
  return axios({
    url: api.SexAnalysis,
    method: 'get',
    params: parameter
  })
}
export function areaAnalysis(parameter) {
  return axios({
    url: api.AreaAnalysis,
    method: 'get',
    params: parameter
  })
}
export function trendAnalysis(parameter) {
  return axios({
    url: api.TrendAnalysis,
    method: 'get',
    params: parameter
  })
}
export function diagnosisTypeAnalysis(parameter) {
  return axios({
    url: api.DiagnosisTypeAnalysis,
    method: 'get',
    params: parameter
  })
}
export function declareSubsidyAnalysis(parameter) {
  return axios({
    url: api.DeclareSubsidyAnalysis,
    method: 'get',
    params: parameter
  })
}
export function analysis(parameter1, parameter2) {
  return axios({
    url: `${api.Analysis}?name=${parameter1}`,
    method: 'post',
    data: parameter2
  })
}
